package com.sjzl.util;

import com.sjzl.entity.User;

public class ShowMessageWindow {

	private String msg;
	
	public ShowMessageWindow(){}

	public ShowMessageWindow(String msg) {
		this.msg = msg;
	}

	public String toString() {

		StringBuffer buffer = new StringBuffer();

		buffer.append("<script type='text/javascript'>");
		buffer.append("	$(document).ready(function() {");
		buffer.append("	$('#test_window').AeroWindow( {");
		buffer.append("	WindowTitle : '查看留言',");
		buffer.append("	WindowPositionTop : 'center',");
		buffer.append("	WindowPositionLeft : 'center',");
		buffer.append("	WindowWidth : 500,");
		buffer.append("	WindowHeight : 350,");
		buffer.append("	WindowAnimation : 'easeOutCubic',");
		buffer.append("	WindowResizable : false,");
		buffer.append("	WindowDraggable : true,");
		buffer.append("	WindowMinimize : false,");
		buffer.append("	WindowMaximize : true,");
		buffer.append("	WindowClosable : true");
		buffer.append("	});");
		buffer.append("	});");
		buffer.append("</script>");
		buffer.append("<div id='test_window' style='display: none;'>");
		buffer.append("<span style='font-size: 18px'>留言内容：</span><br/><br/>");
		buffer.append(msg);
		buffer.append("</div>");
		buffer.append("");
		
		return buffer.toString();
	}

}
